home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-21 / dvcron21.zip / WHATSNEW < prev   
Text File  |  1992-01-19  |  2KB  |  57 lines

  1. What, a new version so soon?
  2. ============================
  3.  
  4.   Yes, it has been brought to my attention that there was a minor bug
  5.   in version 1.0 which needed to be fixed. The bug was a logic error
  6.   in which if either the day-of-month or the day-of-week field was set
  7.   to '*', the command would be executed every day. This has been
  8.   fixed!
  9.  
  10.   I was also asked for the following: command stacking and alternate
  11.   logging.
  12.  
  13.   command stacking works like this:
  14.  
  15.   * * * * * cmd1; cmd2; cmd3; cmd4
  16.  
  17.   You can now execute a series of commands at a certain time as
  18.   opposed to just one. Any switches become set for the line (aka
  19.   local) unless explicitly reset.
  20.  
  21.   eg:
  22.     * * * * * -c20 cmd1; cmd2; -c80 cmd3
  23.  
  24.   will set the maximum conventional memory to 20K for cmd1 and cmd2,
  25.   then to 80K for cmd3. this works for all switches. unfortunatly
  26.   there is no "undo" for "-h" (hide) or "-b" (background) so once
  27.   either of these is set, it remains in effect for the rest of the
  28.   line.
  29.  
  30.   Multiple commands on a line are started as multiple concurrent
  31.   processes. In other words in the above example, cron DOES NOT wait
  32.   for the completion of cmd1 before starting cmd2 and cmd3 so BE
  33.   CAREFUL not to run short on memory if you start multiple processes
  34.   simultaneously.
  35.  
  36.   A request was also made for local log files. The format is
  37.  
  38.     * * * * * -l cmd.log  cmd1; cmd2
  39.     * * * * * cmd3
  40.  
  41.   This will send any log entries to the file cmd.log as opposed to
  42.   whichever log file was set when cron was first loaded. the log file
  43.   is local to the line, so in this example cmd1 and cmd2 would both
  44.   log to "cmd.log" while cmd3 would log to whatever file was set at
  45.   startup.
  46.  
  47.   Note:
  48.     Some shell programs (sh, csh, and others) use the ';' to stack commands
  49.     which need to be executed in a specific order. this can be accomplished
  50.     using two consequtive ';' as in ";;"
  51.  
  52.     * * * * * cmd1 parm ;; parm2 ;; parm3 ; cmd2
  53.  
  54.     will execute cmd1 with a paramter string "parm1 ; parm2 ; parm3"
  55.     then will setup a seperate task to run cmd2 without any parameters.
  56.  
  57.